package com.heima.api.article;

import com.heima.model.article.pojos.ApArticle;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

@Api(tags = "关于文章的api")
public interface ApArticleControllerApi {

    /**
     * 保存app文章
     * @param apArticle
     * @return
     */
    @ApiOperation("添加文章")
    ApArticle saveArticle(ApArticle apArticle);
    @ApiOperation("文章详情")
    ResponseResult loadArticleInfo(ArticleInfoDto dto);
    Map findArticle(Long id);
}